package com.jwiki.app.jkeeper.config;

import org.springframework.context.EnvironmentAware;
import org.springframework.context.annotation.Configuration;
import org.springframework.core.env.Environment;

@Configuration
public class Configurations implements EnvironmentAware {

    private static Environment environment;

    @Override
    public void setEnvironment(Environment environment) {
        Configurations.environment = environment;
    }

    public static String getResourceBase() {
        return environment.getProperty("jetty.resource-base");
    }

}
